import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

Vue.config.productionTip = false

//新建一个公共的bus Vue实例
var bus = new Vue()
Vue.prototype.$bus= bus ; //这样全局就都可以使用了  this.$bus

//引入淘宝适配  或者  网易适配
import "lib-flexible"

//引入全局样式
import "@/assets/styles/index.scss"

//引入全局注册组件
import "@/components"

//引入 Vant 组件库
import Vant from 'vant';
import 'vant/lib/index.css';  // vant UI  样式
Vue.use(Vant);



//引入全局混入
import "@/utils/mixins"

//正则
import {reg} from "@/utils/validate"
Vue.prototype.$reg = reg



//ajax
import {axios,baseURL} from "@/api/ajax"
Vue.prototype.$axios = axios
Vue.prototype.$baseURL = baseURL

import {http} from "@/api"
Vue.prototype.$ajax = http


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
